from api.login import BaseLogin
import requests
# 优惠卷列表
class MerchantCoupon(BaseLogin):
    def merchant_coupon_list(self):
        data ={
            'url':'https://api.admin.merchant.java.crmeb.net/api/admin/merchant/coupon/list',
            'method':'get',
            'headers' : {
                'accept': 'application/json, text/plain, */*',
                'accept-language': 'zh-CN,zh;q=0.9',
                'authori-zation': self.marchant_token,
                'origin': 'https://adminmer.merchant.java.crmeb.net',
            },
            'params' : {
                'page': '1',
                'limit': '4',
                'status': '',
                'name': '',
                'type': '',
                'useType': '',
                'temp': '1714448099',
            },
        }
        return requests.request(**data).json()

if __name__ == '__main__':
    obj=MerchantCoupon()
    print(obj.merchant_coupon_list())



